package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.exportRFCPanelSubs;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.ExportRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.mainframeSub.RFCDisplayTable;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.mainframeSub.ShowRFCFromTableMouseListener;

public class ExportRFCListPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private JScrollPane scrollPane;

	private RFCDisplayTable displayTable;

	public ExportRFCListPanel(ExportRFCPanel exportRFCPanel) {

		this.setLayout(new BorderLayout());

		this.displayTable = new RFCDisplayTable();
		
		this.displayTable.addMouseListener(new ShowRFCFromTableMouseListener(exportRFCPanel.getMainframe(), this.displayTable));
		this.scrollPane = new JScrollPane(displayTable);

		this.add(scrollPane, BorderLayout.CENTER);

	}

	public JScrollPane getScrollPane() {
		return scrollPane;
	}

	public RFCDisplayTable getDisplayTable() {
		return displayTable;
	}

}
